import request from '@/utils/request'

export function adminList(data) {
  return request({
    url: '/console/mangerList',
    method: 'post',
    data
  })
}
export function adminEdit(data) {
  return request({
    url: '/console/mangerEdit',
    method: 'post',
    data
  })
}
export function adminSelfEdit(data) {
  return request({
    url: '/console/self/edit',
    method: 'post',
    data
  })
}
export function adminResetPassword(data) {
  return request({
    url: '/console/resetPassword',
    method: 'post',
    data
  })
}
export function initPassword(data) {
  return request({
    url: '/console/initPassword',
    method: 'post',
    data
  })
}
export function adminAdd(data) {
  return request({
    url: '/console/mangerAdd',
    method: 'post',
    data
  })
}
export function adminDel(data) {
  return request({
    url: '/console/mangerDel',
    method: 'post',
    data
  })
}
export function adminStatus(data) {
  return request({
    url: '/admin/status',
    method: 'post',
    data
  })
}
export function merchantList(data) {
  return request({
    url: '/console/merchantList',
    method: 'post',
    data
  })
}
export function merchantCategoryList(data) {
  return request({
    url: '/console/merchantCategoryList',
    method: 'get'
  })
}
export function merchantCategory(data) {
  return request({
    url: '/console/merchantCategory',
    method: 'post',
    data
  })
}
export function merchantAdd(data) {
  return request({
    url: '/console/merchantAdd',
    method: 'post',
    data
  })
}
export function merchantDel(data) {
  return request({
    url: '/console/merchantDel',
    method: 'post',
    data
  })
}
export function merchantEdit(data) {
  return request({
    url: '/console/merchantEdit',
    method: 'post',
    data
  })
}
// 工单
export function workOrderList(data) {
  return request({
    url: '/console/workOrderList',
    method: 'post',
    data
  })
}
export function mangerSelect() {
  return request({
    url: '/console/mangerSelect',
    method: 'get'
  })
}
// 分配工单处理人
export function workOrderAssign(data) {
  return request({
    url: '/console/workOrderAssign',
    method: 'post',
    data
  })
}
// 工单评论列表
export function workOrderComments(data) {
  return request({
    url: '/console/workOrderComments',
    method: 'post',
    data
  })
}
// 工单评论
export function addWorkOrderComments(data) {
  return request({
    url: '/console/addWorkOrderComments',
    method: 'post',
    data
  })
}
export function agentBuyList(data) {
  return request({
    url: '/console/agentBuyList',
    method: 'post',
    data
  })
}
export function agentKillList(data) {
  return request({
    url: '/console/agentKillList',
    method: 'post',
    data
  })
}
export function agentBuyDeal(data) {
  return request({
    url: '/console/agentBuyDeal',
    method: 'post',
    data
  })
}
export function agentBuySteps(agentId) {
  return request({
    url: '/console/agentBuySteps/' + agentId,
    method: 'get'
  })
}
export function operators(data) {
  return request({
    url: '/console/operators',
    method: 'post',
    data
  })
}

